<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TSmsSend extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_sms_send', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('sms_index')->nullable(false)->comment('');
			$table->integer('Co_ID')->nullable()->default(null)->comment('');
			$table->string('phone', 15)->nullable(false)->comment('');
			$table->string('msg', 1024)->nullable(false)->comment('');
			$table->string('password', 100)->nullable()->default('i4zYK2qNgGea8c')->comment('');
			$table->string('account', 100)->nullable()->default('N1736350')->comment('');
			$table->string('sendtime', 50)->nullable()->default(201704101400)->comment('');
			$table->string('uid', 50)->nullable()->default('321abc')->comment('');
			$table->string('report', 50)->nullable()->default('true')->comment('');
			$table->string('extend', 10)->nullable()->default(555)->comment('');
			$table->string('PlatURL', 100)->nullable()->default('http://smssh1.253.com/msg/send/json')->comment('');
			$table->string('sendtype', 50)->nullable(false)->default('SMS')->comment('');
			$table->integer('sendflag')->nullable(false)->default(1)->comment('');
			$table->datetime('exectime')->nullable(false)->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_sms_send');
    }
}
